package pojo;

/**
 * 角色实体类
 * @author 叶军军
 */
public class Role {

    /**
     * ID
     */
    private int roId;

    /**
     * 名称
     */
    private String roName;

    /**
     * 描述
     */
    private String roDesc;

    /**
     * 拥有权限
     */
    private String roRool;

    /**
     * setter和getter方法
     */
    public int getRoId() {
        return roId;
    }

    public void setRoId(int roId) {
        this.roId = roId;
    }

    public String getRoName() {
        return roName;
    }

    public void setRoName(String roName) {
        this.roName = roName;
    }

    public String getRoDesc() {
        return roDesc;
    }

    public void setRoDesc(String roDesc) {
        this.roDesc = roDesc;
    }

    public String getRoRool() {
        return roRool;
    }

    public void setRoRool(String roRool) {
        this.roRool = roRool;
    }

    /**
     * 无参构造方法
     */
    public Role() {
    }

    /**
     * 有参构造方法
     * @param roId
     * @param roName
     * @param roDesc
     * @param roRool
     */
    public Role(int roId, String roName, String roDesc, String roRool) {
        this.roId = roId;
        this.roName = roName;
        this.roDesc = roDesc;
        this.roRool = roRool;
    }

    /**
     * 重写toString方法
     */
    @Override
    public String toString() {
        return "Role{" +
                "roId=" + roId +
                ", roName='" + roName + '\'' +
                ", roDesc='" + roDesc + '\'' +
                ", roRool='" + roRool + '\'' +
                '}';
    }
}
